<?php
/**
 * Created by 项目.
 * User: xuguopeng
 * Date: 2020-06-10
 * Time: 11:37
 */

namespace app\api\validate\member;


use app\api\validate\BaseValidate;

class CheckMember extends BaseValidate
{
    protected $rule = [
        'name' => 'require|max:20',
        'phone' => 'require|mobile',
        'phone_code' => 'require',
        'gender' => 'require|in:1,2',
        'province' => 'require|max:50',
        'city' => 'require|max:50',
        'county' => 'require|max:50',
        'id_card' => 'require|idCard',
        'id_just_img_id' => 'require|isPositiveInteger',
        'id_back_img_id' => 'require|isPositiveInteger'
    ];


    protected $message = [
        'name' => '请输入真实姓名且长度不能大于20',
        'phone' => '请输入正确的手机号',
        'phone_code' => '请输入短信验证码',
        'gender' => '请选择正确的性别',
        'province' => '请选择地区',
        'city' => '请选择地区',
        'county' => '请选择地区',
        'id_card' => '请填写正确的身份证信息',
        'id_just_img_id' => '请上传身份证正面照片',
        'id_back_img_id' => '请上传身份证反面照片'
    ];
}